﻿using HDS.Model.Entity.Master;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace HDS.Model.Entity.View
{
    public class VDistributorRoom
    {
        /// <summary>
        /// 房型id
        /// </summary>
        [SugarColumn(ColumnName = "room_id")]
        public int RoomId { get; set; }

        /// <summary>
        /// 酒店id
        /// </summary>
        [SugarColumn(ColumnName = "hotel_id")]
        public int HotelId { get; set; }

        /// <summary>
        /// 英文房型名称
        /// </summary>
        [SugarColumn(ColumnName = "room_name_en")]
        public string RoomNameEn { get; set; }

        /// <summary>
        /// 中文房型名称
        /// </summary>
        [SugarColumn(ColumnName = "room_name_cn")]
        public string RoomNameCn { get; set; }

        /// <summary>
        /// 房型面积
        /// </summary>
        [SugarColumn(ColumnName = "room_area")]
        public string RoomArea { get; set; }

        /// <summary>
        /// 最大入住人数
        /// </summary>
        [SugarColumn(ColumnName = "max_occupancy")]
        public int MaxOccupancy { get; set; } = 2;

        /// <summary>
        /// 床型数组json [[{"type":"single","num":2,"width":0}]]
        /// </summary>
        [SugarColumn(ColumnName = "room_beds", IsJson = true)]
        public List<List<RoomBedType>> RoomBeds { get; set; }

        /// <summary>
        /// 房型状态 1:有效,0:删除
        /// </summary>
        [SugarColumn(ColumnName = "room_status")]
        public bool RoomStatus { get; set; }

        /// <summary>
        /// 房型信息md5
        /// </summary>
        [SugarColumn(ColumnName = "room_md5_new")]
        public string RoomMd5New { get; set; }

        /// <summary>
        /// 第三方房型id
        /// </summary>
        [SugarColumn(ColumnName = "third_party_id")]
        public string ThirdPartyId { get; set; }
        /// <summary>
        /// 分销商
        /// </summary>
        [SugarColumn(ColumnName = "distributor")]
        public string Distributor { get; set; }

        /// <summary>
        /// 分销商酒店id
        /// </summary>
        [SugarColumn(ColumnName = "distributor_hotel_id")]
        public string DistributorHotelId { get; set; }

        /// <summary>
        /// 分销商房型id
        /// </summary>
        [SugarColumn(ColumnName = "distributor_room_id")]
        public string DistributorRoomId { get; set; }

        /// <summary>
        /// 分销商房型id1
        /// </summary>
        [SugarColumn(ColumnName = "distributor_room_id1")]
        public string DistributorRoomId1 { get; set; }

        /// <summary>
        /// 房型信息md5 推送时，md5值
        /// </summary>
        [SugarColumn(ColumnName = "room_md5")]
        public string RoomMd5 { get; set; }

        /// <summary>
        /// 推送操作状态 0: 未推送 10: 已推送 20: 已获取推送结果
        /// </summary>
        [SugarColumn(ColumnName = "push_status")]
        public PushStatus PushStatus { get; set; } = 0;

        /// <summary>
        /// 推送错误信息
        /// </summary>
        [SugarColumn(ColumnName = "push_error")]
        public string PushError { get; set; }

        /// <summary>
        /// 推送结果 0: 默认 10: 已推送 20: 已接受 30: 已激活 40: 已停用 50: 推送失败
        /// </summary>
        [SugarColumn(ColumnName = "push_result")]
        public PushResult PushResult { get; set; } = 0;

        /// <summary>
        /// 更新人id
        /// </summary>
        [SugarColumn(ColumnName = "updated_by")]
        public int UpdatedBy { get; set; }

        /// <summary>
        /// 更新人姓名
        /// </summary>
        [SugarColumn(ColumnName = "updated_by_name")]
        public string UpdatedByName { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        [SugarColumn(ColumnName = "updated_time")]
        public DateTime UpdatedTime { get; set; }
    }
}
